﻿using System;

namespace Circa.Tools {
    public static class StringExtensions {
        public static string LeftW( this String str, int count ) {
            string[] bits = str.Split( new char[ ] { ' ' }, count + 1, StringSplitOptions.RemoveEmptyEntries );
            return string.Join( " ", bits, 0, count );
        }

    }

}
